/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.server.dto;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DTO_Roof extends DTO_AbstractPersistentEntity {

	private static final long serialVersionUID = -3302781330097148670L;
	
	@Persistent private String slope;
	@Persistent private String covering;
	@Persistent private String shape;
	@Persistent private String gableEndBracing;
	@Persistent private String sheathing;
	@Persistent private String nailSize;
	@Persistent private String nailSpacing;
	@Persistent private String deckAttachment;
	@Persistent private String frameSpacing;
	@Persistent private String roofWallAnchorage;
	@Persistent private String roofPerimeter;
	
	// constants
	public static final String SLOPE = "slope";
	public static final String COVERING = "coverage";
	public static final String SHAPE = "shape";
	public static final String GABLEENDBRACING = "gable end bracing";
	public static final String SHEATHING = "sheathing";
	public static final String NAILSIZE = "nail size";
	public static final String NAILSPACING = "nail spacing";
	public static final String DECKATTACHMENT = "deck attachment";
	public static final String FRAMESPACING = "frame spacing";
	public static final String ROOFWALLANCHORAGE = "roof wall anchorage";
	public static final String ROOFPERIMETER = "roof perimeter";
	
	public DTO_Roof() {
		super();
	}


	public String getCovering() {
		return covering;
	}


	public void setCovering(String covering) {
		this.covering = covering;
	}


	public String getDeckAttachment() {
		return deckAttachment;
	}


	public void setDeckAttachment(String deckAttachment) {
		this.deckAttachment = deckAttachment;
	}


	public String getFrameSpacing() {
		return frameSpacing;
	}


	public void setFrameSpacing(String frameSpacing) {
		this.frameSpacing = frameSpacing;
	}


	public String getGableEndBracing() {
		return gableEndBracing;
	}


	public void setGableEndBracing(String gableEndBracing) {
		this.gableEndBracing = gableEndBracing;
	}


	public String getNailSize() {
		return nailSize;
	}


	public void setNailSize(String nailSize) {
		this.nailSize = nailSize;
	}


	public String getNailSpacing() {
		return nailSpacing;
	}


	public void setNailSpacing(String nailSpacing) {
		this.nailSpacing = nailSpacing;
	}


	public String getRoofPerimeter() {
		return roofPerimeter;
	}


	public void setRoofPerimeter(String roofPerimeter) {
		this.roofPerimeter = roofPerimeter;
	}


	public String getRoofWallAnchorage() {
		return roofWallAnchorage;
	}


	public void setRoofWallAnchorage(String roofWallAnchorage) {
		this.roofWallAnchorage = roofWallAnchorage;
	}


	public String getShape() {
		return shape;
	}


	public void setShape(String shape) {
		this.shape = shape;
	}


	public String getSheathing() {
		return sheathing;
	}


	public void setSheathing(String sheathing) {
		this.sheathing = sheathing;
	}


	public String getSlope() {
		return slope;
	}


	public void setSlope(String slope) {
		this.slope = slope;
	}
	
	public String toString()
	{
		String str = "";
		str += "[roof";
		str += "[slope="+this.slope+"]";
		str += "[covering="+this.covering+"]";
		str += "[shape="+this.shape+"]";
		str += "[gable-end-bracing="+this.gableEndBracing+"]";
		str += "[sheathing="+this.sheathing+"]";
		str += "[nail-size="+this.nailSize+"]";
		str += "[nail-spacing="+this.nailSpacing+"]";
		str += "[deck-attachment="+this.deckAttachment+"]";
		str += "[frame-spacing="+this.frameSpacing+"]";
		str += "[roof-wall-anchorage="+this.roofWallAnchorage+"]";
		str += "[roof-perimeter="+this.roofPerimeter+"]";
		str += "]";
		return str;
	}		
	
	
}
